var totalPath = {
	jquery : 'common/lib/jquery/jquery.min',
	jQueryCookie : 'common/lib/jquery-cookie/jquery.cookie',
	bootstrap : 'common/lib/bootstrap/js/bootstrap.min',
	bootstrap_dialog : 'common/lib/bootstrap3-dialog/js/bootstrap-dialog.min',

	angular: 'common/lib/angularjs/angular.min',
	angular_resource: 'common/lib/angularjs/angular-resource.min',
	angular_cookies: 'common/lib/angularjs/angular-cookies.min',
	angular_route: 'common/lib/angularjs/angular-route.min',
	angular_sanitize: 'common/lib/angularjs/angular-sanitize.min',

	ui_select: 'common/lib/ui-select/select.min'
};
var totalShim = {
    jQueryCookie : ['jquery'],
	bootstrap : ['jquery'],
	bootstrap_dialog : ['jquery','bootstrap'],

	angular_resource : ['angular'],
	angular_route : ['angular'],
	angular_sanitize: ['angular'],

	ui_select: ['angular']
};
var totalDependency = [
	'common/js/domReady',

	'jQueryCookie',
	'bootstrap_dialog',

	'angular_resource',
	'angular_route',
	'angular_sanitize',

	'ui_select',

	'transition/js/boss-frame-angular-global-0.1',
	'common/js/boss-frame-angular-dev-0.1',
	'common/js/controller/login-controller-0.1',
	'common/js/directive/login-directive-0.1'
];
require.config({
	baseUrl : "./",
	paths:totalPath,
	shim:totalShim
});

require(totalDependency,
	function(domReady){
		domReady(function() {
			$('html').addClass('ng-app:msd');
			angular.bootstrap(document, ['msd']);
		});
	});
